package com.dodayum.dao;

import com.dodayum.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<User> queryAll();

    List<User> queryByUserName(String userName);

    int insert(User user);

    List<User> login(@Param("userName") String userName, @Param("password") String password);

}
